#include "head.h"

int pwdFunc(int netfd,stack1_t dir){
    train_t workingdir;
    bzero(&workingdir,sizeof(workingdir));

    travel_stack(dir,workingdir.data);
    strcat(workingdir.data,"\n");

    workingdir.length=strlen(workingdir.data);

    send(netfd,&workingdir,sizeof(workingdir.length)+workingdir.length,MSG_NOSIGNAL);
    return 0;
}
